package com.egao.gps.entity;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author Damon
 * @create 2020-11-18 9:33
 */
@Document(collection = "userLoginTimes")
public class UserLoginTimes {

    public UserLoginTimes() {
    }

    @Id
    private ObjectId id;//id
    private String username;//username
    private Integer loginTimes;//login times
    private String createDate;//create date

    public ObjectId getId() {
        return id;
    }

    public void setId(ObjectId id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getLoginTimes() {
        return loginTimes;
    }

    public void setLoginTimes(Integer loginTimes) {
        this.loginTimes = loginTimes;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }
}
